

export function calcNumberPx(size?: number|string) {
    if (!size){ return size }
    if (size.toString().includes("px")||size.toString().includes("%")||size.toString().includes("em")){
        return size
    }
    return size+'px';
}

export function calcNumberDeg(size?: number|string) {
    if (!size){ return size }
    if (size.toString().includes("deg")){
        return size
    }
    return size+'deg';
}